package com.zjmzxfzhl.modules.flowable.common.listener;

import org.flowable.engine.delegate.TaskListener;
import org.flowable.task.service.delegate.DelegateTask;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * 任务节点前置监听处理类
 *
 * @author: 庄金明
 **/
@Component
public class MyTaskListener implements TaskListener {


    @Override
    public void notify(DelegateTask delegateTask) {
        List<String> userList = new ArrayList<>();
//        delegateTask.addCandidateGroup(userList);
        System.out.println(delegateTask.getEventName());
    }
}